package com.zqq.aidldemo.aidlServer;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;

import com.zqq.aidldemo.BooKCheckService;

/**
 * 为实现，看一下生成即可
 * @author zqq on 2018/7/17
 */
public class AIDLBookCheck extends Service {

    public AIDLBookCheck() {
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new MyBinder();
    }

    class MyBinder extends BooKCheckService.Stub {
        @Override
        public String getBookInfo(String bookName) throws RemoteException {
            return bookName+"好书，好书";
        }

        @Override
        public String getBookList() throws RemoteException {
            return "这是List";
        }
    }


}
